WARNING: This program has a bug, which means we need to fix it! This bug is a logic error.

RULE: We must use the parameter variable names in the functions we write. Then we can pass arguments into the function when we call it. In this function, we want the turtle to draw a green hexagon.

  • Click Run and watch the stage to see what is wrong.
  • Use the parameter name color in the .set_color() command so that the turtle draws a green hexagon.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)